package com.kevin.thread;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.Future;

public class NewFixedThreadPoolTest {
    public static void main(String[] args) {
        ExecutorService executorService = Executors.newFixedThreadPool(2);
        Future<?> submit = executorService.submit(new MyThread2());
        System.out.println(submit);
    }
}

class MyThread2 implements Runnable{

    @Override
    public void run() {
        System.out.println("fuck");
    }
}
